package top.forforever.srb.sms.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import top.forforever.srb.common.exception.Assert;
import top.forforever.srb.common.result.R;
import top.forforever.srb.common.result.ResponseEnum;
import top.forforever.srb.sms.client.ServiceCoreUserInfoClient;
import top.forforever.srb.sms.service.ApiSmsService;

/**
 * @create: 2023/5/3
 * @Description:
 * @FileName: ApiSmsController
 * @自定义内容：
 */
@RestController
@RequestMapping("/api/sms")
public class ApiSmsController {

    @Autowired
    private ApiSmsService apiSmsService;



    @GetMapping("sendCode/{mobile}")
    public R sendCode(@PathVariable String mobile) {
        //判断手机号是否已存在


        apiSmsService.sendCode(mobile);
        return R.ok();
    }

}
